#pragma once

#include "framework.h"
#include "testd3d9.h"
#include "D3D.h"

class WinMsg {
public:
	LRESULT wm_command(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
	LRESULT wm_paint(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
	LRESULT wm_destroy(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
	LRESULT wm_timer(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);

	LRESULT idm_color(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
	void PopFileInitialize(HWND hWnd);
	void FileSave(HWND hWnd);

	void timer_id();
	
public:
	HINSTANCE hInst;
	D3D m_d3d;
	int m_wm_command;
	bool m_bId;
};

